﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Salon
{

    public class DictionaryItem
    {
        public int Id { get; set; }
        public string DictValue { get; set; }
        public bool Active { get; set; }

        public DictionaryItem(int _id, string _dictValue)
        {
            this.Id = _id;
            this.DictValue = _dictValue;
        }

        public DictionaryItem()
        { }


        public override bool Equals(object obj)
        {
            DictionaryItem item = obj as DictionaryItem;
            if (item == null)
                return false;

            if (this.Id.Equals(item.Id))
                return true;

            return false;
        }

        public override int GetHashCode()
        {
            return Id.GetHashCode();
        }

        public override string ToString()
        {
            return DictValue;
        }
    }
}
